/**
 * author: redd
 * create_time: 2017/12/26 17:05
 * description:
 */

import React, {Component} from 'react'
import Counter from './Counter'

export default class ControlPanel extends Component {
  render() {
    console.log('enter ControlPanel render')
    return (
      <div>
        <Counter caption="First" />
        <Counter caption="Second" initValue={10} />
        <Counter caption="Third" initValue={20} />

        <button onClick={() => this.forceUpdate()}>Click me to repaint</button>
      </div>
    )
  }
}